package com.example.guethe.fireanalysisapp.common;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

/**
 * Created by zhaoshengping on 2017/8/24.
 */

public abstract class EasySubscriber<T> implements Observer<T> {
    @Override
    public void onNext(T value) {

    }

    @Override
    public void onComplete() {
        complete();
    }

    @Override
    public void onError(Throwable e) {

    }

    @Override
    public void onSubscribe(Disposable d) {

    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    abstract protected void complete();
}
